package com.openatc.extend.common.aop.log;

import org.aspectj.lang.ProceedingJoinPoint;
import org.springframework.stereotype.Component;

/**
 * @author ：panleilei
 * @description
 * @modified By：
 * @version:
 * @date ：Created in 2023/3/23 16:52
 */
@Component
public class CollectorExecutor {

    public <D> void execute(Collector<D> collector, ProceedingJoinPoint point, DataExtractor<D> extractor, Object ret) {
        collector.collect(extractor.extract(point,ret));
    }
}
